package com.cotacao;

import com.cotacao.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;

public class Cotacao extends Activity {

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	private Intent i,e,r,c;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		ImageButton btn = (ImageButton) findViewById(R.id.btn_cad_prod);
		i = new Intent(this, Produto.class);
		btn.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				startActivity(i);

			}
		});

		ImageButton btn2 = (ImageButton) findViewById(R.id.btn_cad_emp);
		e = new Intent(this, Empresa.class);
		btn2.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				startActivity(e);

			}
		});

		ImageButton btn3 = (ImageButton) findViewById(R.id.btn_cad_marca);
		r = new Intent(this, Marca.class);
		btn3.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				startActivity(r);

			}
		});
		ImageButton btn4 = (ImageButton) findViewById(R.id.btn_cad_preco);
		c = new Intent(this, Preco.class);
		btn4.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				startActivity(c);

			}
		});
		
		
	}

}
